package com.huang.usercenter.mapper;

import com.huang.usercenter.model.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 14748
* @description 针对表【user(用户)】的数据库操作Mapper
* @createDate 2023-02-03 14:23:46
* @Entity generator.domain.User
*/
@Mapper
public interface UserMapper {
    Boolean removeById(long id);

    List<User> listWithUsername(String username);

    User getOneByUserAccount(@Param("userAccount") String userAccount);

    User getOneByPlanetCode(@Param("planetCode") String planetCode);

    boolean saveUser(User user);

    User getOneByUserAccountAndPassword(String userAccount, String encryptPassword);

    User getById(Long userId);

    Boolean updateById(User user);
}




